package com.aaa.service.impl;

import com.aaa.dao.TextureMapper;
import com.wsc.entity.Texture;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TextureServiceImpl {
    @Resource
    TextureMapper textureMapper;
    public List<Texture> select(){
        return textureMapper.selectList(null);
    }
    public Integer insert(Texture texture){
        System.out.println(texture+"这是service属性");
        return textureMapper.insert(texture);
    }
    public Integer update(Texture texture){
        return textureMapper.updateById(texture);
    }
    public Integer delete(Integer id){
        return textureMapper.deleteById(id);
    }
}
